import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import pinia from "@/store"
import './permission'
import '@/styles/themes.scss';
import * as echarts from 'echarts'
import Echarts from 'vue-echarts'
import vue3videoPlay from 'vue3-video-play' // 引入组件
import 'vue3-video-play/dist/style.css' // 引入css

const app=createApp(App)

import eventBus from './eventBus.js';  // 引入事件总线
app.config.globalProperties.$bus = eventBus;

app.component('e-charts',Echarts)
app.config.globalProperties.$echarts = echarts
app.use(vue3videoPlay)



app.use(router).use(ElementPlus).use(pinia).mount('#app')


